package com.ssa.server.domain.Infrastructure;/**
 * Created by Alex on 2018/4/22.
 *
 * @author Alex
 */

import com.ssa.server.domain.repository.UserRepository;
import com.ssa.server.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import javax.transaction.Transactional;

/**
 * ytx UserRepositoryImpl
 *
 * @author <a href="mailto:chenlsh@ytx.com">陈录顺</a>
 * @since 2.5.12
 */
@Repository
@Transactional
public class UserRepositoryImpl extends SimpleJpaRepository<User, Long> implements UserRepository {

    @Autowired
    public UserRepositoryImpl(EntityManager em) {
        super(User.class, em);
    }


    public UserRepositoryImpl(JpaEntityInformation<User, ?> entityInformation, EntityManager entityManager) {
        super(entityInformation, entityManager);
    }

    public UserRepositoryImpl(Class<User> domainClass, EntityManager em) {
        super(domainClass, em);
    }
}
